package org.yate.oa.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.TaskEntity;
import org.yate.oa.utils.Pagination;

@Repository(value = "taskMapper")
@CacheNamespace(size = 512)
public interface TaskMapper extends IBaseMapperDao<TaskEntity, Integer> {

	List<TaskEntity> getEntitiesBy(
        Pagination<TaskEntity> page,
        @Param(value = "orderField") final String orderField,
        @Param(value = "orderMode") final String orderMode,
        @Param(value = "where") String... strings);
	
	List<TaskEntity> getEntitiesByOrdId(
	        Pagination<TaskEntity> page,
	        @Param(value = "orderField") final String orderField,
	        @Param(value = "orderMode") final String orderMode,
	        @Param(value = "where") String... strings);
}
